//
//  checkPhoneNumberApi.m
//  EMMApp
//
//  Created by 无常先生 on 2018/8/23.
//  Copyright © 2018年 YiXun. All rights reserved.
//

#import "checkPhoneNumberApi.h"
#define myUrlMethod @"verifyingMobile"
#define myUrlPath @"/appapi/verifyingMobile"
@implementation checkPhoneNumberApi
{
    NSString *_body;
}
- (instancetype)initWithPhoneNumber:(NSString *)phoneNumber {
    if (self = [super init]) {
        _body = [@{@"params" : @{@"phone" : phoneNumber}} JSONString];
    }
    return self;
}

//域名后面的网址信息 ————————————
- (NSString *)requestUrl
{
    return myUrlPath;
}

//需要传入的参数 ——————————————
- (id)requestArgument
{
    return @{ @"body" : _body };
}
- (NSString *)methodString
{
    return myUrlMethod;
}

@end
